package com.example.my.shop.mybatis.dao;

import com.example.my.shop.mybatis.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbUserMapper {
    public List<TbUser> findAll();

    public TbUser selectUserByName(String username);

    public TbUser selectUserById(@Param("id") int id);

    public boolean addUser(TbUser user);

    public int updateTbUser(TbUser user);

    public List<TbUser> fuzzyQuery(String username);

    public void deleteUser(TbUser user);

    public int deleteUserById(@Param("id") int id);

    public TbUser selectUserByEmail(@Param("email") String email);

}
